import { Form, Input, Button, InputNumber } from 'antd';

const TestChild = ({ form }) => {
  return (
    <Form form={form} name="nest-messages">
      <Form.Item name={['test', 'name']} label="Name" rules={[{ required: true }]}>
        <Input />
      </Form.Item>
      <Form.Item name={['test', 'name1']} label="Name" rules={[{ required: true }]}>
        <Input />
      </Form.Item>
    </Form>
  )
}

export default TestChild;